<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>WinActivateBottom</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="../static/theme.css" rel="stylesheet" type="text/css" />
<script src="../static/content.js" type="text/javascript"></script>
</head>
<body>

<h1>WinActivateBottom</h1>

<p>Same as <a href="WinActivate.htm">WinActivate</a> except that it activates the bottommost (least recently active) matching window rather than the topmost.</p>

<pre class="Syntax">WinActivateBottom [, WinTitle, WinText, ExcludeTitle, ExcludeText]</pre>
<h3>Parameters</h3>
<dl>

  <dt>WinTitle</dt>
  <dd><p>A window title or other criteria identifying the target window. See <a href="../misc/WinTitle.htm">WinTitle</a>.</p></dd>

  <dt>WinText</dt>
  <dd><p>If present, this parameter must be a substring from a single text element of the target window (as revealed by the included Window Spy utility). Hidden text elements are detected if <a href="DetectHiddenText.htm">DetectHiddenText</a> is ON.</p></dd>

  <dt>ExcludeTitle</dt>
  <dd><p>Windows whose titles include this value will not be considered.</p></dd>

  <dt>ExcludeText</dt>
  <dd><p>Windows whose text include this value will not be considered.</p></dd>

</dl>

<h3>Remarks</h3>
<p>If there is only one matching window, WinActivateBottom behaves identically to <a href="WinActivate.htm">WinActivate</a>.</p>
<p><a href="GroupAdd.htm">Window groups</a> are more advanced than this command, so consider using them for more features and flexibility.</p>
<p>If the window is minimized, it is automatically restored prior to being activated.</p>
<p>Six attempts will be made to activate the target window over the course of 60ms. Thus, it is usually unnecessary to follow it with the <a href="WinWaitActive.htm">WinWaitActive</a> command.</p>
<p>Unlike <a href="WinActivate.htm">WinActivate</a>, the <a href="../misc/WinTitle.htm#LastFoundWindow">Last Found Window</a> cannot be used because it might not be the bottommost window. Therefore, at least one of the parameters must be non-blank.</p>
<p>When a window is activated immediately after another window was activated, task bar buttons may start flashing on some systems (depending on OS and settings). To prevent this, use <a href="_WinActivateForce.htm">#WinActivateForce</a>.</p>
<p>Window titles and text are case sensitive. Hidden windows are not detected unless <a href="DetectHiddenWindows.htm">DetectHiddenWindows</a> has been turned on.</p>

<h3>Related</h3>
<p><a href="WinActivate.htm">WinActivate</a>, <a href="_WinActivateForce.htm">#WinActivateForce</a>, <a href="SetTitleMatchMode.htm">SetTitleMatchMode</a>, <a href="DetectHiddenWindows.htm">DetectHiddenWindows</a>, <a href="WinExist.htm">IfWinExist</a>, <a href="WinActive.htm">IfWinActive</a>, <a href="WinWaitActive.htm">WinWaitActive</a>, <a href="WinWait.htm">WinWait</a>, <a href="WinWaitClose.htm">WinWaitClose</a>, <a href="GroupActivate.htm">GroupActivate</a></p>
<h3>Example</h3>
<pre class="NoIndent"><em>; This hotkey allows you to visit all open browser windows in order from oldest to newest:</em>
#i::
SetTitleMatchMode, 2
WinActivateBottom, - Microsoft Internet Explorer
return</pre>

</body>
</html>
